Contents | Index | < Browse | Browse >

LETTERtoupperULETTER Converts lowercase to uppercase letters.

#include <ctype.h>

r = toupper(ch);

int r;
int ch;

Portability
ANSI

Description
If the character passed is an lowercase letter it will be converted to uppercase, otherwise it remains unchanged. For portability reasons only the ASCII letters from "a" to "z" will be converted, eg. the German Umlauts (äöüß) remain unchanged.

Returns
The converted character.

See also
tolower